<template>

  <smart-page id="system-menu">
    <template #search>
      <smart-search :query-array="PROFILE_SEARCH" @on-handler="onSearch"/>
    </template>
    <a-table v-model:selectedKeys="selectedKeys"
             :table-layout-fixed="theme.layoutFixed"
             :columns="PROFILE_COLUMNS_LOGS"
             :row-key="rowKey"
             :column-resizable="theme.resizable"
             :bordered="theme.bordered"
             :stripe="theme.stripe"
             :sticky-header="theme.sticky"
             :hoverable="theme.hoverAble"
             :pagination="pagination"
             :loading="theme.loading"
             :data="dataSource"
             @page-change="onPageChange"
             @page-size-change="onPageSizeChange">
    </a-table>
  </smart-page>


</template>
<script lang="ts" setup name="system-settings-menu">
import {onMounted} from 'vue';
import {TablePage} from "@/libs/core";
import { PROFILE_COLUMNS_LOGS} from "../resource/colums";
import {PopBasicHttp} from "../resource/http";
import {PROFILE_SEARCH} from "../resource/search";
import {Acl} from "@/libs/acl";
// import RefineModal from './refine.vue'

const pageConfig = {title: '列表', rowKey: 'id', nameKey: 'name',}
const {getDiamondLogsList } = PopBasicHttp
const tablePage = new TablePage(pageConfig).setFetchXhr(getDiamondLogsList).setPermission(Acl.POP_DIAMOND_LOGS_PAGE_LIST);

const {theme, pagination, rowKey, dataSource, rowSelection, selectedKeys, editCtr} = tablePage
const {onFetch, onPageChange, onPageSizeChange, onSearch} = tablePage
onMounted(() => onFetch())
</script>

<style lang="less" scoped>
:deep( .smart-page-header) {
  margin-bottom: 1px !important;
}
</style>